package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.widget.TextView;

public class friend_detail_page extends AppCompatActivity {

    // 声明放置textView视图对象的容器
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // 取消标题栏
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_friend_detail_page);

        // 获取intent传过来的数据
        Intent intent=getIntent();
        Bundle bundle=intent.getExtras();
        int index = bundle.getInt("index");

        // 给textView赋值
        textView = findViewById(R.id.friend_detail);
        textView.setText("测试人员" + index + "的详情页面");

    }
}